package com.woniu.car.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.car.domain.TRolePermission;
import com.woniu.car.dto.PermissionsDto;
import com.woniu.car.exception.ParamException;
import com.woniu.car.param.BackstageQueryPermissionParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WWX
 * @since 2021-06-19
 */
public interface TRolePermissionService extends IService<TRolePermission> {
    //新增角色权限
    public void insertRolePermission(TRolePermission tRolePermission) throws Exception;
    //求改角色权限
    public void updateRolePermission(TRolePermission tRolePermission) throws Exception;
    //查看角色权限
    public List<TRolePermission> showRolePermission();
    //查找角色权限
    public List<TRolePermission> queryRolePermission(TRolePermission tRolePermission);
    //根据用户ID查找权限
    public List<PermissionsDto> queryPermissionById(BackstageQueryPermissionParam param) throws ParamException;
}
